home *** CD-ROM | disk | FTP | other *** search
/ STraTOS 1997 April & May / STraTOS 1 - 1997 April & May.iso / CD01 / INTERNET / SITES / RAND / UNSPLIT / text0479.txt < prev    next >
Encoding:
Text File  |  1997-02-06  |  5.1 KB  |  124 lines

  1.  
  2. > Hahaaahaaa! Haaahaahahaha!
  3.  
  4. > :-) not very funny for me, though.
  5.  
  6. I'm not laughing at you - I'm laughing at Profile. :I
  7.  
  8. > I've just worked it out after you pointed this out to me. (should have
  9. > guessed earlier!).
  10.  
  11. > OK, I should check the mem variables earlier...
  12.  
  13. No, I meant _I_ should have guessed earlier... :/
  14.  
  15. > You are not going to believe ME! :)))))
  16.  
  17. > I see, I should learn to use the correct English tense at last (not will 
  18. > not believe, but are not going to :-)
  19.  
  20. No, I just meant that you were not going to believe me, after you suggesting
  21. I might not believe you! I wasn't criticising your English (which was quite 
  22. correct as far as I noticed).
  23.  
  24. It appears everything we say to one another has several possible meanings, with
  25. the wrong one at the top of the list. :)))
  26.  
  27. > 3) You have 1MB of this ram allocated for FASTROM (automatic RomSpeed). This
  28. >    drops alt_ramtop to $1300000.
  29.  
  30. > OK, but think about the automatic allocation - someone with little memory 
  31. > probably doesn't want to spend 1/4 of his memory for ROM ;-)
  32.  
  33. I didn't expect there to be many 4MB fastram users. I was going to make it
  34. configurable anyway - it's not complete yet. It already disables fastrom
  35. on machines with less than 4MB.
  36.  
  37. > OK, but that's your not bug, but fault or something. Really.
  38.  
  39. > First, AFAIK there's no documented way for finding out the start of FastRAM.
  40.  
  41. No clear way anyway...
  42.  
  43. > Second, it is documented, that FastRAM begins at $1000000. 
  44.  
  45. No, it's actually documented that TT ram always starts at %1000000 on real TT
  46. machines, but alternate ram may begin and end absolutely anywhere there is
  47. a valid CPU addressing space. Motorola guidelines suggest 32MB boundaries.
  48.  
  49. > Third, programs do rely on the beginning at $1000000. At least all 
  50. > programs for checking free RAM and, which is more important, Linux relies 
  51. > on it, too. And Linux is the most important for me ATM.
  52.  
  53. I wouldn't be concerned about ram-checkers if they make such assumptions, but
  54. Linux should know much better. It is designed for any platform with any memory
  55. map configuration - not the TT.
  56.  
  57. I am prepared to change the driver to solve problems with Linux if they do exist,
  58. but I would be most disappointed if it doesn't already depend on an external driver
  59. to specify alternate ram pages. Any other way is unsafe.
  60.  
  61. > I'll try to check it in a little program written in C, that will be the 
  62. > fastest solution for now.
  63.  
  64. It won't help you - the MMU is instructed to map any non-valid ram pages as 'missing'
  65. so no memory errors result from crashes (wraparound can cause good ram to be destroyed
  66. by unchecked writes).
  67.  
  68. You will need to try it on a clean machine (if the MMU is not set up the same way)
  69. or with one of the AB drivers, also assuming they leave all invalid ram unprotected.
  70.  
  71. > Anyway, Profile should not be assuming alt_ram begins at $1000000 - there are no
  72. > rules specifying this address as being a requirement. That's why the maddalt call
  73. > offers you a choice of destinations! :)
  74.  
  75. > Well, that's true. But maybe it is because you can have e.g. two external 
  76. > memory blocks, so the second begins at $1400000, but the first at 
  77. > $1000000.
  78.  
  79. Whatever the reasons, there are no rules for allocation of alternate ram. TT ram
  80. maybe, but not alternate ram. There is an important difference - altram encapsulates
  81. TT ram, but not the other way round. It's quite possible to have both TT ram and
  82. other altram at the same time. This allows external ram devices to be mapped at
  83. any location at all.
  84.  
  85. > Anyway, in Atari Compendium and in other sources there's written Atari 
  86. > memory map, where TT RAM always begins at $1000000...
  87.  
  88. Agreed, but I did not expect anyone to assume Falcon altram MUST begin here. It
  89. could be anywhere - quite legally.
  90.  
  91. > Could you please modify your patch to reflect that?
  92.  
  93. I will, for the sake of Linux and other more important programs which may have
  94. problems, but this really shouldn't happen. The Falcon is not a TT. :)
  95.  
  96. I would have done this originally, but for a number of reasons decided not to.
  97.  
  98. One good reason is the difficulty of dynamically building an MMU tree half-way
  99. through a 32MB memory block, with unspecified length. I'll do my best to implement
  100. this when I have time.
  101.  
  102. > Profile is just subtracting $1000000 from the end of detected fastram and coming
  103. > up with a figure 16 megs bigger than what is actually there. Not a good plan.
  104.  
  105. > The only one, IMHO. Or how could you find out how much Fast RAM is there? 
  106. > (maybe you don't need to know that, usually).
  107.  
  108. They should use the memory pool to calculate used/free & total ram. They should
  109. not be using ramtop pointers, which cannot be relied upon.
  110.  
  111. > So you can stop worrying about 19mb, and start worrying about 4 instead of 8!
  112.  
  113. > So, _please_, try to modify your 68040.PRG to let the FastRAM begin at 
  114. > $1000000, it helps me a lot and maybe people won't be confused by Profile 
  115. > and other programs.
  116.  
  117. To be honest, I knew about the TT address, but never believed any software would
  118. make such daring assumptions about the start of ALL kinds of fastram. In principle
  119. I should leave it alone out of protest, but you are right - people will be happier
  120. with it 'emulating' a TT as closely as possible. :)
  121.  
  122. Doug.
  123.  
  124.